package au.edu.swin.bank.ejb.session.stateless;

import java.math.BigInteger;
import javax.ejb.Remote;

/**
 *
 * @author scott
 */
@Remote
public interface AccountRemote
{
    /**
     * Archives the balance of all accounts held by SwinBank.
     * Records the account number, balance and current time.
     */
    public void archive();

    /**
     * Gets the balance of an account with the specified ID.
     *
     * @param accountId
     *
     * @return the balance of the account
     */
    public double getBalance(BigInteger accountId);

    /**
     * Forces an eviction of the data in the Bean's cache.
     */
    public void forceEvict();
}
